package com.service.impl;

import com.bean.pojo.District;
import com.dao.DistrictMapper;
import com.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DistrictServiceImpl implements DistrictService {

    @Autowired
    private DistrictMapper dm;

    @Override
    public int save(District district) {
        return 0;
    }

    @Override
    public int remove(District district) {
        return 0;
    }

    @Override
    public int modify(District district) {
        return 0;
    }

    @Override
    public List<District> query(District district) {
        return dm.select(district);
    }

    @Override
    public int queryCount(Map<String, Object> map) {
        return dm.selectCount(map);
    }

    @Override
    public List<District> queryByPage(Map<String, Object> map) {
        return dm.selectByPage(map);
    }
}
